/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.impl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EValidator;
import org.eclipse.emf.ecore.impl.EPackageImpl;

import ar.edu.utn.frsf.cidisi.upcolbpip.UpcolbpipPackage;
import ar.edu.utn.frsf.cidisi.upcolbpip.b2bcollaborations.B2bcollaborationsPackage;
import ar.edu.utn.frsf.cidisi.upcolbpip.b2bcollaborations.impl.B2bcollaborationsPackageImpl;
import ar.edu.utn.frsf.cidisi.upcolbpip.businessinterfaces.BusinessinterfacesPackage;
import ar.edu.utn.frsf.cidisi.upcolbpip.businessinterfaces.impl.BusinessinterfacesPackageImpl;
import ar.edu.utn.frsf.cidisi.upcolbpip.collaborativebusinessprocesses.CollaborativebusinessprocessesPackage;
import ar.edu.utn.frsf.cidisi.upcolbpip.collaborativebusinessprocesses.impl.CollaborativebusinessprocessesPackageImpl;
import ar.edu.utn.frsf.cidisi.upcolbpip.impl.UpcolbpipPackageImpl;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.And;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.BusinessMessage;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.CFSNoSync;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.CFSSync;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Cancel;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Compensation;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Condition;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.ControlFlowSegment;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Correlation;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.If;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.InteractionPath;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.InteractionProtocol;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.InteractionProtocolElement;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.InteractionprotocolsFactory;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.InteractionprotocolsPackage;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Lifeline;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Loop;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.LoopType;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.MultipleInstance;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.MultipleInstancesType;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Or;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.ProtocolReference;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Role;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.SynchronizationType;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Termination;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.TerminationElement;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.TimeConstraint;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.TimeExpresion;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.TimeObservation;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Transaction;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Xor;
import ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.util.InteractionprotocolsValidator;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class InteractionprotocolsPackageImpl extends EPackageImpl implements InteractionprotocolsPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass businessMessageEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass interactionProtocolElementEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass interactionProtocolEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass controlFlowSegmentEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass interactionPathEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass lifelineEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass terminationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass conditionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass timeExpresionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass timeConstraintEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass timeObservationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass protocolReferenceEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass correlationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass roleEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass cfsSyncEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass cfsNoSyncEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass andEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass orEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass xorEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass ifEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass loopEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass exceptionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass cancelEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass multipleInstanceEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass transactionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass compensationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum terminationElementEEnum = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum loopTypeEEnum = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum multipleInstancesTypeEEnum = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum synchronizationTypeEEnum = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.InteractionprotocolsPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private InteractionprotocolsPackageImpl() {
		super(eNS_URI, InteractionprotocolsFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link InteractionprotocolsPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static InteractionprotocolsPackage init() {
		if (isInited) return (InteractionprotocolsPackage)EPackage.Registry.INSTANCE.getEPackage(InteractionprotocolsPackage.eNS_URI);

		// Obtain or create and register package
		InteractionprotocolsPackageImpl theInteractionprotocolsPackage = (InteractionprotocolsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InteractionprotocolsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InteractionprotocolsPackageImpl());

		isInited = true;

		// Obtain or create and register interdependencies
		UpcolbpipPackageImpl theUpcolbpipPackage = (UpcolbpipPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UpcolbpipPackage.eNS_URI) instanceof UpcolbpipPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UpcolbpipPackage.eNS_URI) : UpcolbpipPackage.eINSTANCE);
		CollaborativebusinessprocessesPackageImpl theCollaborativebusinessprocessesPackage = (CollaborativebusinessprocessesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CollaborativebusinessprocessesPackage.eNS_URI) instanceof CollaborativebusinessprocessesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CollaborativebusinessprocessesPackage.eNS_URI) : CollaborativebusinessprocessesPackage.eINSTANCE);
		B2bcollaborationsPackageImpl theB2bcollaborationsPackage = (B2bcollaborationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(B2bcollaborationsPackage.eNS_URI) instanceof B2bcollaborationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(B2bcollaborationsPackage.eNS_URI) : B2bcollaborationsPackage.eINSTANCE);
		BusinessinterfacesPackageImpl theBusinessinterfacesPackage = (BusinessinterfacesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BusinessinterfacesPackage.eNS_URI) instanceof BusinessinterfacesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BusinessinterfacesPackage.eNS_URI) : BusinessinterfacesPackage.eINSTANCE);

		// Create package meta-data objects
		theInteractionprotocolsPackage.createPackageContents();
		theUpcolbpipPackage.createPackageContents();
		theCollaborativebusinessprocessesPackage.createPackageContents();
		theB2bcollaborationsPackage.createPackageContents();
		theBusinessinterfacesPackage.createPackageContents();

		// Initialize created meta-data
		theInteractionprotocolsPackage.initializePackageContents();
		theUpcolbpipPackage.initializePackageContents();
		theCollaborativebusinessprocessesPackage.initializePackageContents();
		theB2bcollaborationsPackage.initializePackageContents();
		theBusinessinterfacesPackage.initializePackageContents();

		// Register package validator
		EValidator.Registry.INSTANCE.put
			(theInteractionprotocolsPackage, 
			 new EValidator.Descriptor() {
				 public EValidator getEValidator() {
					 return InteractionprotocolsValidator.INSTANCE;
				 }
			 });

		// Mark meta-data to indicate it can't be changed
		theInteractionprotocolsPackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(InteractionprotocolsPackage.eNS_URI, theInteractionprotocolsPackage);
		return theInteractionprotocolsPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getBusinessMessage() {
		return businessMessageEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getBusinessMessage_TimeToReceiptAcknowledgement() {
		return (EAttribute)businessMessageEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getBusinessMessage_TimeToReadAcknowledgement() {
		return (EAttribute)businessMessageEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBusinessMessage_Sender() {
		return (EReference)businessMessageEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBusinessMessage_Receiver() {
		return (EReference)businessMessageEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBusinessMessage_Guard() {
		return (EReference)businessMessageEClass.getEStructuralFeatures().get(4);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getBusinessMessage_Intention() {
		return (EAttribute)businessMessageEClass.getEStructuralFeatures().get(5);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBusinessMessage_Information() {
		return (EReference)businessMessageEClass.getEStructuralFeatures().get(6);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBusinessMessage_BmInteractionPath() {
		return (EReference)businessMessageEClass.getEStructuralFeatures().get(7);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getInteractionProtocolElement() {
		return interactionProtocolElementEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionProtocolElement_Name() {
		return (EAttribute)interactionProtocolElementEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionProtocolElement_TimeExpression() {
		return (EReference)interactionProtocolElementEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionProtocolElement_Id() {
		return (EAttribute)interactionProtocolElementEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionProtocolElement_Predecessor() {
		return (EReference)interactionProtocolElementEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionProtocolElement_Successor() {
		return (EReference)interactionProtocolElementEClass.getEStructuralFeatures().get(4);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getInteractionProtocol() {
		return interactionProtocolEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionProtocol_Name() {
		return (EAttribute)interactionProtocolEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionProtocol_StartEvent() {
		return (EAttribute)interactionProtocolEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionProtocol_PreCondition() {
		return (EAttribute)interactionProtocolEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionProtocol_PostCondition() {
		return (EAttribute)interactionProtocolEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionProtocol_State() {
		return (EAttribute)interactionProtocolEClass.getEStructuralFeatures().get(4);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionProtocol_IpElement() {
		return (EReference)interactionProtocolEClass.getEStructuralFeatures().get(5);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionProtocol_TimeExpression() {
		return (EReference)interactionProtocolEClass.getEStructuralFeatures().get(6);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionProtocol_Role() {
		return (EReference)interactionProtocolEClass.getEStructuralFeatures().get(7);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getControlFlowSegment() {
		return controlFlowSegmentEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getControlFlowSegment_InteractionPath() {
		return (EReference)controlFlowSegmentEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getInteractionPath() {
		return interactionPathEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionPath_Element() {
		return (EReference)interactionPathEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionPath_Guard() {
		return (EReference)interactionPathEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getInteractionPath_Name() {
		return (EAttribute)interactionPathEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getInteractionPath_InteractionPathBusinessMessages() {
		return (EReference)interactionPathEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getLifeline() {
		return lifelineEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getLifeline_Name() {
		return (EAttribute)lifelineEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getLifeline_PartnerRole() {
		return (EReference)lifelineEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getLifeline_Sends() {
		return (EReference)lifelineEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getLifeline_Receives() {
		return (EReference)lifelineEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getTermination() {
		return terminationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getTermination_TerminationElement() {
		return (EAttribute)terminationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getTermination_Lifeline() {
		return (EReference)terminationEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getCondition() {
		return conditionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getCondition_ConditionExpression() {
		return (EAttribute)conditionEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getTimeExpresion() {
		return timeExpresionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getTimeConstraint() {
		return timeConstraintEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getTimeConstraint_StartTime() {
		return (EAttribute)timeConstraintEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getTimeConstraint_EndTime() {
		return (EAttribute)timeConstraintEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getTimeObservation() {
		return timeObservationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getTimeObservation_Variable() {
		return (EAttribute)timeObservationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getTimeObservation_Value() {
		return (EAttribute)timeObservationEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getProtocolReference() {
		return protocolReferenceEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getProtocolReference_Protocol() {
		return (EReference)protocolReferenceEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getProtocolReference_Correlation() {
		return (EReference)protocolReferenceEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getCorrelation() {
		return correlationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getCorrelation_ProtocolElement() {
		return (EAttribute)correlationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getCorrelation_SubProtocoloElement() {
		return (EAttribute)correlationEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getRole() {
		return roleEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getRole_Name() {
		return (EAttribute)roleEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getRole_RoleLifeline() {
		return (EReference)roleEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getRole_RolePartnerRole() {
		return (EReference)roleEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getCFSSync() {
		return cfsSyncEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getCFSSync_SynchronizationType() {
		return (EAttribute)cfsSyncEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getCFSNoSync() {
		return cfsNoSyncEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getAnd() {
		return andEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getOr() {
		return orEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getXor() {
		return xorEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getIf() {
		return ifEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getLoop() {
		return loopEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getLoop_LoopType() {
		return (EAttribute)loopEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getException() {
		return exceptionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getCancel() {
		return cancelEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getMultipleInstance() {
		return multipleInstanceEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getMultipleInstance_MultipleInstanceType() {
		return (EAttribute)multipleInstanceEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getTransaction() {
		return transactionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getCompensation() {
		return compensationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getTerminationElement() {
		return terminationElementEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getLoopType() {
		return loopTypeEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getMultipleInstancesType() {
		return multipleInstancesTypeEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getSynchronizationType() {
		return synchronizationTypeEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public InteractionprotocolsFactory getInteractionprotocolsFactory() {
		return (InteractionprotocolsFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		businessMessageEClass = createEClass(BUSINESS_MESSAGE);
		createEAttribute(businessMessageEClass, BUSINESS_MESSAGE__TIME_TO_RECEIPT_ACKNOWLEDGEMENT);
		createEAttribute(businessMessageEClass, BUSINESS_MESSAGE__TIME_TO_READ_ACKNOWLEDGEMENT);
		createEReference(businessMessageEClass, BUSINESS_MESSAGE__SENDER);
		createEReference(businessMessageEClass, BUSINESS_MESSAGE__RECEIVER);
		createEReference(businessMessageEClass, BUSINESS_MESSAGE__GUARD);
		createEAttribute(businessMessageEClass, BUSINESS_MESSAGE__INTENTION);
		createEReference(businessMessageEClass, BUSINESS_MESSAGE__INFORMATION);
		createEReference(businessMessageEClass, BUSINESS_MESSAGE__BM_INTERACTION_PATH);

		interactionProtocolElementEClass = createEClass(INTERACTION_PROTOCOL_ELEMENT);
		createEAttribute(interactionProtocolElementEClass, INTERACTION_PROTOCOL_ELEMENT__NAME);
		createEReference(interactionProtocolElementEClass, INTERACTION_PROTOCOL_ELEMENT__TIME_EXPRESSION);
		createEAttribute(interactionProtocolElementEClass, INTERACTION_PROTOCOL_ELEMENT__ID);
		createEReference(interactionProtocolElementEClass, INTERACTION_PROTOCOL_ELEMENT__PREDECESSOR);
		createEReference(interactionProtocolElementEClass, INTERACTION_PROTOCOL_ELEMENT__SUCCESSOR);

		interactionProtocolEClass = createEClass(INTERACTION_PROTOCOL);
		createEAttribute(interactionProtocolEClass, INTERACTION_PROTOCOL__NAME);
		createEAttribute(interactionProtocolEClass, INTERACTION_PROTOCOL__START_EVENT);
		createEAttribute(interactionProtocolEClass, INTERACTION_PROTOCOL__PRE_CONDITION);
		createEAttribute(interactionProtocolEClass, INTERACTION_PROTOCOL__POST_CONDITION);
		createEAttribute(interactionProtocolEClass, INTERACTION_PROTOCOL__STATE);
		createEReference(interactionProtocolEClass, INTERACTION_PROTOCOL__IP_ELEMENT);
		createEReference(interactionProtocolEClass, INTERACTION_PROTOCOL__TIME_EXPRESSION);
		createEReference(interactionProtocolEClass, INTERACTION_PROTOCOL__ROLE);

		controlFlowSegmentEClass = createEClass(CONTROL_FLOW_SEGMENT);
		createEReference(controlFlowSegmentEClass, CONTROL_FLOW_SEGMENT__INTERACTION_PATH);

		interactionPathEClass = createEClass(INTERACTION_PATH);
		createEReference(interactionPathEClass, INTERACTION_PATH__ELEMENT);
		createEReference(interactionPathEClass, INTERACTION_PATH__GUARD);
		createEAttribute(interactionPathEClass, INTERACTION_PATH__NAME);
		createEReference(interactionPathEClass, INTERACTION_PATH__INTERACTION_PATH_BUSINESS_MESSAGES);

		lifelineEClass = createEClass(LIFELINE);
		createEAttribute(lifelineEClass, LIFELINE__NAME);
		createEReference(lifelineEClass, LIFELINE__PARTNER_ROLE);
		createEReference(lifelineEClass, LIFELINE__SENDS);
		createEReference(lifelineEClass, LIFELINE__RECEIVES);

		terminationEClass = createEClass(TERMINATION);
		createEAttribute(terminationEClass, TERMINATION__TERMINATION_ELEMENT);
		createEReference(terminationEClass, TERMINATION__LIFELINE);

		conditionEClass = createEClass(CONDITION);
		createEAttribute(conditionEClass, CONDITION__CONDITION_EXPRESSION);

		timeExpresionEClass = createEClass(TIME_EXPRESION);

		timeConstraintEClass = createEClass(TIME_CONSTRAINT);
		createEAttribute(timeConstraintEClass, TIME_CONSTRAINT__START_TIME);
		createEAttribute(timeConstraintEClass, TIME_CONSTRAINT__END_TIME);

		timeObservationEClass = createEClass(TIME_OBSERVATION);
		createEAttribute(timeObservationEClass, TIME_OBSERVATION__VARIABLE);
		createEAttribute(timeObservationEClass, TIME_OBSERVATION__VALUE);

		protocolReferenceEClass = createEClass(PROTOCOL_REFERENCE);
		createEReference(protocolReferenceEClass, PROTOCOL_REFERENCE__PROTOCOL);
		createEReference(protocolReferenceEClass, PROTOCOL_REFERENCE__CORRELATION);

		correlationEClass = createEClass(CORRELATION);
		createEAttribute(correlationEClass, CORRELATION__PROTOCOL_ELEMENT);
		createEAttribute(correlationEClass, CORRELATION__SUB_PROTOCOLO_ELEMENT);

		roleEClass = createEClass(ROLE);
		createEAttribute(roleEClass, ROLE__NAME);
		createEReference(roleEClass, ROLE__ROLE_LIFELINE);
		createEReference(roleEClass, ROLE__ROLE_PARTNER_ROLE);

		cfsSyncEClass = createEClass(CFS_SYNC);
		createEAttribute(cfsSyncEClass, CFS_SYNC__SYNCHRONIZATION_TYPE);

		cfsNoSyncEClass = createEClass(CFS_NO_SYNC);

		andEClass = createEClass(AND);

		orEClass = createEClass(OR);

		xorEClass = createEClass(XOR);

		ifEClass = createEClass(IF);

		loopEClass = createEClass(LOOP);
		createEAttribute(loopEClass, LOOP__LOOP_TYPE);

		exceptionEClass = createEClass(EXCEPTION);

		cancelEClass = createEClass(CANCEL);

		multipleInstanceEClass = createEClass(MULTIPLE_INSTANCE);
		createEAttribute(multipleInstanceEClass, MULTIPLE_INSTANCE__MULTIPLE_INSTANCE_TYPE);

		transactionEClass = createEClass(TRANSACTION);

		compensationEClass = createEClass(COMPENSATION);

		// Create enums
		terminationElementEEnum = createEEnum(TERMINATION_ELEMENT);
		loopTypeEEnum = createEEnum(LOOP_TYPE);
		multipleInstancesTypeEEnum = createEEnum(MULTIPLE_INSTANCES_TYPE);
		synchronizationTypeEEnum = createEEnum(SYNCHRONIZATION_TYPE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		B2bcollaborationsPackage theB2bcollaborationsPackage = (B2bcollaborationsPackage)EPackage.Registry.INSTANCE.getEPackage(B2bcollaborationsPackage.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		businessMessageEClass.getESuperTypes().add(this.getInteractionProtocolElement());
		controlFlowSegmentEClass.getESuperTypes().add(this.getInteractionProtocolElement());
		terminationEClass.getESuperTypes().add(this.getInteractionProtocolElement());
		timeConstraintEClass.getESuperTypes().add(this.getTimeExpresion());
		timeObservationEClass.getESuperTypes().add(this.getTimeExpresion());
		protocolReferenceEClass.getESuperTypes().add(this.getInteractionProtocolElement());
		cfsSyncEClass.getESuperTypes().add(this.getControlFlowSegment());
		cfsNoSyncEClass.getESuperTypes().add(this.getControlFlowSegment());
		andEClass.getESuperTypes().add(this.getCFSSync());
		orEClass.getESuperTypes().add(this.getCFSSync());
		xorEClass.getESuperTypes().add(this.getCFSNoSync());
		ifEClass.getESuperTypes().add(this.getCFSNoSync());
		loopEClass.getESuperTypes().add(this.getCFSNoSync());
		exceptionEClass.getESuperTypes().add(this.getCFSNoSync());
		cancelEClass.getESuperTypes().add(this.getCFSNoSync());
		multipleInstanceEClass.getESuperTypes().add(this.getCFSSync());
		transactionEClass.getESuperTypes().add(this.getCFSNoSync());
		compensationEClass.getESuperTypes().add(this.getCFSNoSync());

		// Initialize classes and features; add operations and parameters
		initEClass(businessMessageEClass, BusinessMessage.class, "BusinessMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getBusinessMessage_TimeToReceiptAcknowledgement(), ecorePackage.getEString(), "timeToReceiptAcknowledgement", null, 0, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getBusinessMessage_TimeToReadAcknowledgement(), ecorePackage.getEString(), "timeToReadAcknowledgement", null, 0, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getBusinessMessage_Sender(), this.getLifeline(), null, "sender", null, 1, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getBusinessMessage_Receiver(), this.getLifeline(), null, "receiver", null, 1, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getBusinessMessage_Guard(), this.getCondition(), null, "guard", null, 0, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getBusinessMessage_Intention(), theB2bcollaborationsPackage.getSpeechAct(), "intention", null, 0, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getBusinessMessage_Information(), theB2bcollaborationsPackage.getBusinessDocument(), null, "information", null, 0, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getBusinessMessage_BmInteractionPath(), this.getInteractionPath(), null, "bmInteractionPath", null, 0, 1, BusinessMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(interactionProtocolElementEClass, InteractionProtocolElement.class, "InteractionProtocolElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getInteractionProtocolElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, InteractionProtocolElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionProtocolElement_TimeExpression(), this.getTimeExpresion(), null, "timeExpression", null, 0, 1, InteractionProtocolElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getInteractionProtocolElement_Id(), ecorePackage.getEString(), "id", null, 0, 1, InteractionProtocolElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionProtocolElement_Predecessor(), this.getInteractionProtocolElement(), null, "predecessor", null, 0, 1, InteractionProtocolElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionProtocolElement_Successor(), this.getInteractionProtocolElement(), null, "successor", null, 0, 1, InteractionProtocolElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(interactionProtocolEClass, InteractionProtocol.class, "InteractionProtocol", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getInteractionProtocol_Name(), ecorePackage.getEString(), "name", null, 0, 1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getInteractionProtocol_StartEvent(), ecorePackage.getEString(), "startEvent", null, 0, 1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getInteractionProtocol_PreCondition(), ecorePackage.getEString(), "preCondition", null, 0, 1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getInteractionProtocol_PostCondition(), ecorePackage.getEString(), "postCondition", null, 0, 1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getInteractionProtocol_State(), ecorePackage.getEString(), "state", null, 0, 1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionProtocol_IpElement(), this.getInteractionProtocolElement(), null, "ipElement", null, 0, -1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionProtocol_TimeExpression(), this.getTimeExpresion(), null, "timeExpression", null, 0, 1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionProtocol_Role(), this.getRole(), null, "role", null, 0, -1, InteractionProtocol.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(controlFlowSegmentEClass, ControlFlowSegment.class, "ControlFlowSegment", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getControlFlowSegment_InteractionPath(), this.getInteractionPath(), null, "interactionPath", null, 1, -1, ControlFlowSegment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(interactionPathEClass, InteractionPath.class, "InteractionPath", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getInteractionPath_Element(), this.getInteractionProtocolElement(), null, "element", null, 0, -1, InteractionPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionPath_Guard(), this.getCondition(), null, "guard", null, 0, 1, InteractionPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getInteractionPath_Name(), ecorePackage.getEString(), "name", null, 0, 1, InteractionPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getInteractionPath_InteractionPathBusinessMessages(), this.getBusinessMessage(), null, "interactionPathBusinessMessages", null, 0, -1, InteractionPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(lifelineEClass, Lifeline.class, "Lifeline", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getLifeline_Name(), ecorePackage.getEString(), "name", null, 0, 1, Lifeline.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getLifeline_PartnerRole(), theB2bcollaborationsPackage.getPartnerRole(), null, "partnerRole", null, 1, 1, Lifeline.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getLifeline_Sends(), this.getBusinessMessage(), null, "sends", null, 0, -1, Lifeline.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getLifeline_Receives(), this.getBusinessMessage(), null, "receives", null, 0, -1, Lifeline.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(terminationEClass, Termination.class, "Termination", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getTermination_TerminationElement(), this.getTerminationElement(), "terminationElement", null, 0, 1, Termination.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getTermination_Lifeline(), this.getLifeline(), null, "lifeline", null, 1, 1, Termination.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(conditionEClass, Condition.class, "Condition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getCondition_ConditionExpression(), ecorePackage.getEString(), "ConditionExpression", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(timeExpresionEClass, TimeExpresion.class, "TimeExpresion", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(timeConstraintEClass, TimeConstraint.class, "TimeConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getTimeConstraint_StartTime(), ecorePackage.getEString(), "startTime", null, 0, 1, TimeConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getTimeConstraint_EndTime(), ecorePackage.getEString(), "endTime", null, 0, 1, TimeConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(timeObservationEClass, TimeObservation.class, "TimeObservation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getTimeObservation_Variable(), ecorePackage.getEString(), "variable", null, 0, 1, TimeObservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getTimeObservation_Value(), ecorePackage.getEString(), "value", null, 0, 1, TimeObservation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(protocolReferenceEClass, ProtocolReference.class, "ProtocolReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getProtocolReference_Protocol(), this.getInteractionProtocol(), null, "protocol", null, 0, 1, ProtocolReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getProtocolReference_Correlation(), this.getCorrelation(), null, "correlation", null, 0, -1, ProtocolReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(correlationEClass, Correlation.class, "Correlation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getCorrelation_ProtocolElement(), ecorePackage.getEString(), "protocolElement", null, 0, 1, Correlation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEAttribute(getCorrelation_SubProtocoloElement(), ecorePackage.getEString(), "subProtocoloElement", null, 0, 1, Correlation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(roleEClass, Role.class, "Role", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getRole_Name(), ecorePackage.getEString(), "name", null, 0, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getRole_RoleLifeline(), this.getLifeline(), null, "roleLifeline", null, 0, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getRole_RolePartnerRole(), theB2bcollaborationsPackage.getPartnerRole(), null, "rolePartnerRole", null, 0, 1, Role.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(cfsSyncEClass, CFSSync.class, "CFSSync", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getCFSSync_SynchronizationType(), this.getSynchronizationType(), "synchronizationType", null, 0, 1, CFSSync.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(cfsNoSyncEClass, CFSNoSync.class, "CFSNoSync", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(andEClass, And.class, "And", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(orEClass, Or.class, "Or", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(xorEClass, Xor.class, "Xor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(ifEClass, If.class, "If", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(loopEClass, Loop.class, "Loop", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getLoop_LoopType(), this.getLoopType(), "loopType", null, 0, 1, Loop.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(exceptionEClass, ar.edu.utn.frsf.cidisi.upcolbpip.interactionprotocols.Exception.class, "Exception", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(cancelEClass, Cancel.class, "Cancel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(multipleInstanceEClass, MultipleInstance.class, "MultipleInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getMultipleInstance_MultipleInstanceType(), this.getMultipleInstancesType(), "multipleInstanceType", null, 0, 1, MultipleInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(transactionEClass, Transaction.class, "Transaction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(compensationEClass, Compensation.class, "Compensation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		// Initialize enums and add enum literals
		initEEnum(terminationElementEEnum, TerminationElement.class, "TerminationElement");
		addEEnumLiteral(terminationElementEEnum, TerminationElement.SUCCESS);
		addEEnumLiteral(terminationElementEEnum, TerminationElement.FAILURE);

		initEEnum(loopTypeEEnum, LoopType.class, "LoopType");
		addEEnumLiteral(loopTypeEEnum, LoopType.UNTIL);
		addEEnumLiteral(loopTypeEEnum, LoopType.WHILE);

		initEEnum(multipleInstancesTypeEEnum, MultipleInstancesType.class, "MultipleInstancesType");
		addEEnumLiteral(multipleInstancesTypeEEnum, MultipleInstancesType.AT_DESIGN_TIME);
		addEEnumLiteral(multipleInstancesTypeEEnum, MultipleInstancesType.AT_RUN_TIME);
		addEEnumLiteral(multipleInstancesTypeEEnum, MultipleInstancesType.WITHOUT_RUN_TIME_KNOWLEDGE);

		initEEnum(synchronizationTypeEEnum, SynchronizationType.class, "SynchronizationType");
		addEEnumLiteral(synchronizationTypeEEnum, SynchronizationType.SYNCHRONIZING_MERGE);
		addEEnumLiteral(synchronizationTypeEEnum, SynchronizationType.DISCRIMINATOR);
		addEEnumLiteral(synchronizationTypeEEnum, SynchronizationType.NOUT_OF_M);
		addEEnumLiteral(synchronizationTypeEEnum, SynchronizationType.MULTI_MERGE);
	}

} //InteractionprotocolsPackageImpl
